package com.ccsc.auth.dao;

import com.ccsc.auth.entity.SysUser;
import com.ccsc.auth.entity.User;
import com.ccsc.auth.utils.DataMap;
import com.github.miemiedev.mybatis.paginator.domain.PageBounds;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by XingWen on 2016/3/29.
 */
public interface SysUserDao {
    SysUser verifyAccount(SysUser user) throws Exception;				    								//登录用户验证

    List<SysUser> getAllUsers() throws Exception;       							                    //获取全部用户列表
    List<SysUser> getAllUsers(DataMap dataMap, PageBounds pageBounds) throws Exception;       			//或者根据条件分页获取全部用户列表

    List<SysUser> getUsersByCondition(SysUser user) throws Exception;							            //根据条件查询用户列表
    List<SysUser> getUsersByCondition(SysUser user, PageBounds pageBounds)throws Exception;				//分页并根据条件查询用户列表

    SysUser getUserInfoById(SysUser user) throws Exception;                                                                   //通过用户id用户个人信息

    Integer createUser(SysUser user) throws Exception;  												                    //添加用户
    Integer updateUser(SysUser user) throws Exception;  												                    //修改用户
    Integer deleteUser(SysUser user) throws Exception; 									    		                    //删除用户
}